package cn.com.wantools.service.task;

import cn.com.wantools.service.ExchangeService;
import com.jfinal.aop.Inject;
import io.jboot.components.schedule.annotation.FixedRate;

@FixedRate(period = 60, initialDelay = 60)
public class RefreshExchangeTask implements Runnable {

    @Inject
    private ExchangeService exchangeService;

    @Override
    public void run() {
        exchangeService.reloadExchange();
    }
}
